package com.bee.bootstrap.system.service;

import com.bee.bootstrap.system.entity.Attachment;
import com.baomidou.mybatisplus.service.IService;
import com.bee.common.core.result.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liekkas
 * @since 2018-05-08
 */
public interface IAttachmentService extends IService<Attachment> {

    Result uploadImage(List<MultipartFile> files, String businessType) throws IOException;

    Result uploadFiles(List<MultipartFile> files, String businessType) throws IOException;

    Result updateCustomFileName(Long id, String customFileName);

    Result deleteAttachment(Long id);

    List<Attachment> findAttachmentsById(Collection ids);

    List<Attachment> findAttachmentsByIds(List<Attachment> attachments,String ids);
}
